package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IShopKeepFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AppModleRequest;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.netmodle.resp.ShopKeeperEntity;

import java.util.List;

public class ShopKeepFragmentModel implements IShopKeepFragmentModel {

    private NetService netService;

    public ShopKeepFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initData(HttpResultSubscriber<ShopKeeperEntity> subscriber) {
        netService.shopKeepData(subscriber);
    }

    @Override
    public void initMoHu(AppModleRequest request, HttpResultSubscriber<List<AppModleEntity>> subscriber) {
        netService.appModle(request, subscriber);
    }
}
